-
Notifications
You must be signed in to change notification settings - Fork 244
chore(ci): update dependencies without force push COMPASS-9939 #7445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ env.UPDATE_BRANCH_NAME }} | ||
| path: existing-branch-checkout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit hard to validate until we actually manage to make this task update an exiting PR, but just reading through this change seems like this checked out file will continue to be there if the PR is being created updated and I think the create-pull-request will commit it with other files. We probably want to clean it up before this happens?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Perhaps we should just add it to the .gitignore?
|
Dispatched this manually on "eslint", which at the time of running already had a PR open and it did seem to skip the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves the CI dependency update workflow to avoid unnecessary force pushes by checking for existing branches and comparing package-lock.json files before creating or updating pull requests.
- Adds branch existence checking to prevent overwriting manual commits on update branches
- Implements sparse checkout of existing branches to compare package-lock.json changes
- Makes PR creation conditional based on branch existence and actual file differences
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
7c5c5bf to
2b7626f
Compare
2b7626f to
1977c6d
Compare
Description
Merging this PR will:
Checklist
Motivation and Context
See peter-evans/create-pull-request#3977 and section in the action's README.md for a bit more context on the lack of this feature in the "create-pull-request" action.
Open Questions
Dependents
Types of changes